package com.cfpl.project_common.exception;

import com.cfpl.project_common.enums.CodeEnum;
import lombok.Data;

/**
 * 业务异常
 */
@Data
public class BusException extends RuntimeException{

    private Integer err_code;
    private String err_message;

    public BusException(CodeEnum codeEnum){
        this.err_code = codeEnum.getCode();
        this.err_message = codeEnum.getMessage();
    }

}
